<?php $this->_extends('_layouts/main_layout'); ?>

<?php $this->_block('title'); ?>
	Change Password
<?php $this->_endblock(); ?>

<?php $this->_block('keywords');?>
<meta name="keywords" content="<?php echo $site['keywords']; ?>" />
<?php $this->_endblock();?>

<?php $this->_block('description');?>
<meta name="description" content="<?php echo $site['description']; ?>" />
<?php $this->_endblock();?>

<?php $this->_block('content'); ?>

<div class="mm createaccount">
	<div class="topad">
		<?php if (!empty($user)) { ?>
		<?php echo str_replace('[[USER_ID]]', $user['id'], $site['ad_top']);?>
		<?php } ?>
	</div>
	<div class="clear" style="height: 10px"></div>
	<div class="left" style="width: 600px;">
		<div class="title">Update Password</div>
		<form method="post" action="<?php echo url('user/updating'); ?>" >
			<div class="bold">
				<p>Please choose a new password. Remember this password as you will
					need it each time you log into lalaloot.com. It must be at least 6
					characters long and can contain only letters and numbers.</p>
			</div>
			<?php 
			if(isset($errors)):
			?>
				<ul class="errors">
					<?php foreach ($errors as $error): ?>
						<li><?php echo $error;?></li>
					<?php endforeach;?>
				</ul>
			<?php endif;?>
			<div class="clear" style="height: 10px;"></div>
			<div class="tr">
				<div class="lable left">Enter New Password</div>
				<div class="m left">
					<input class="inputtxt" name="password" id="password" type="password"/>
				</div>
				<div class="info left"></div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<div class="tr">
				<div class="lable left">Verify Password</div>
				<div class="m left">
					<input class="inputtxt" name="repassword" id="repassword" type="password"/>
				</div>
				<div class="info left"></div>
				<div class="clear"></div>
			</div>
			<div class="clear" style="height: 10px;"></div>
			<div class="tr">
				<div class="lable left"></div>
				<div class="m left save">
					<input type="image"
						src="<?php echo $img_url; ?>changepasswordbtn.png" alt=""
						width="208" height="51" />
				</div>
				<div class="info left"></div>
				<div class="clear"></div>
			</div>
		</form>
	</div>
	<div class="right rightad">
		<?php $this->_element('rightad'); ?>
	</div>
	<div class="clear" style="height: 20px;"></div>
	<div class="bottomad">
		<?php echo $site['ad_bottom']; ?>
	</div>
</div>
<div class="mb"></div>
<?php $this->_endblock(); ?>